package com.guigu.auth.service;

import com.guigu.auth.entity.AuthResource;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.tms.result.R;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 资源 服务类
 * </p>
 *
 * @author TaoLong
 * @since 2021-12-06
 */
public interface AuthResourceService extends IService<AuthResource> {

    /**
     * 根据用户查询权限信息
     * @param userId 用户Id
     * @return
     */
    public R<Set<AuthResource>> queryResourcesBasedOnUserId(String userId);

    /**
     * 查询全部菜单信息
     * @return
     */
    public R<List<AuthResource>> queryAll();
}
